﻿ 
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    /// 产品
    /// </summary>
    public class ProductRequestDto
    { 
        /// <summary>
        /// 设备类型
        /// </summary>
        [Required(ErrorMessage = "设备类型")]
        public DeviceType deviceType { set; get; }


        /// <summary>
        /// 型号
        /// </summary>
        [Required(ErrorMessage = "型号")]
        public string Model { set; get; }

        /// <summary>
        /// GPRS模块类型
        /// </summary>
        [Required(ErrorMessage = "GPRS模块类型")]
        public GPRSModuleType GPRSModuleType { set; get; }

        /// <summary>
        /// 批次号
        /// </summary>
        [Required(ErrorMessage = "批次号")]
        public string BatchNumber { set; get; }

        /// <summary>
        /// 生产日期
        /// </summary>
        [Required(ErrorMessage = "生产日期")]
        public DateTime FactoryDate { set; get; }

        /// <summary>
        /// 生产厂名称
        /// </summary>
        [Required(ErrorMessage = "生产厂名称")]
        public string FactoryName { set; get; }

        /// <summary>
        /// 生产厂地址
        /// </summary>
        [Required(ErrorMessage = "生产厂地址")]
        public string FactoryAddress { set; get; }

        /// <summary>
        /// IMEI列表
        /// </summary>
        public List<string> imeiList { set; get; }


        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set; get; }
    }
}
